﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations;

namespace mesoBoard.Data
{
    public interface IPostValidation
    {
        [Required(ErrorMessage="Enter a post message")]
        string Text { get; set; }
    }

    [MetadataType(typeof(IPostValidation))]
    public partial class Post : IPostValidation { } 


}
